﻿

// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 22:14:57
// 负责人：Sushee
// ===================================================================

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Component.DTO;
using OF.Component.Model;
namespace OF.Component.IDAL
{

    /// <summary>
    ///收件地址 数据访问层接口  
    /// </summary>
    internal partial interface IMailAddress
    {

        /// <summary>
        /// 根据断言条件获取单个收件地址
        /// </summary>
        MailAddressInfo QuerySingle(Expression<Func<MailAddressInfo, bool>> predicate);

        /// <summary>
        /// 根据断言条件获获取收件地址列表
        /// </summary>
        IList<MailAddressInfo> QueryList(Expression<Func<MailAddressInfo, bool>> predicate);

        IList<MailAddressDto> SearchList(MailAddressConditon condition, out int total);

        /// <summary>
        /// 获取默认收件地址
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        MailAddressInfo GetDefault(long userId);

    }


}